package app.util;

public class LI {
	public static long interpolate(long x1, long x2, long val1,
			long val2, long x) {
		return val1 + Math.round((val2 - val1) * (float)(x - x1)/(float)(x2 - x1));
	}
}
